package com.parking.repository;

import com.parking.entity.ParkingOrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface ParkingOrderRepository extends JpaRepository<ParkingOrder, Long> {
    List<ParkingOrder> findByLicensePlate(String licensePlate);
    Optional<ParkingOrder> findByParkingSpaceIdAndStatus(Long parkingSpaceId, String status);
}